package com.example.myweb.Dto;


import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class DraftSaveRequestDTO {
    @NotBlank(message = "草稿类型不能为空")
    private String type; // "ARTICLE" or "DYNAMIC" (大小写不敏感)

    @NotNull(message = "草稿内容不能为空")
    private Object content; // 前端将整个文章/动态的表单数据作为JSON对象传来
}